package com.chaoyue.orders.service;



import com.chaoyue.messagesdk.model.po.MqMessage;
import com.chaoyue.orders.beans.dto.AddOrderDto;
import com.chaoyue.orders.beans.dto.PayRecordDto;
import com.chaoyue.orders.beans.dto.PayStatusDto;
import com.chaoyue.orders.beans.po.CyPayRecord;

public interface OrderService {
    /**
     * @description:  下单接口
      * @param: null
     * @return:
     * @author whr
     * @date: 2023/6/2 18:48
     */
    PayRecordDto createOrder(String userId, AddOrderDto addOrderDto);
    /**
     * @description:  获取支付记录
     * @author whr
     * @date: 2023/6/3 10:33
     */
     CyPayRecord getPayRecordByPayno(String payNo);
    /**
     * @description: 查询支付结果
     * @author whr
     * @date 2023/6/3 15:57
     */

    PayRecordDto queryPayResult(String payNo);

    /**
     * @description: 保存支付宝的支付结果到数据库
     * @author whr
     * @date 2023/6/3 19:45

     */
     void saveAliPayStatus(PayStatusDto payStatusDto);
     /**
      * @description: 支付结果通知
      * @author whr
      * @date 2023/6/3 21:36
      */
      void notifyPayResult(MqMessage message);
}
